<?php
    function check_user($username_to_check)
    {
        global $dbobj;
        $stmt = $dbobj->prepare("SELECT * FROM mc_skin_con WHERE username = ?");
        $stmt->bind_param("s", $username_to_check);
        $stmt->execute();
    
        $result = $stmt->get_result();
    
        if ($result->num_rows > 0) {
            return true;
        } else {
            return false;
        }
    }
?>